<?php if (!defined('WPSR_ACCESS')) { exit; } ?>

<?php $this->wpsrBreadcrumbs(); ?>

<?php $this->getimgsizes('740x500_ncw/'); ?>

<div id="wpsr_picture">

	<div id="wpsr_pic" style="width: <?php echo $this->getimgsizex(); ?>px; height: <?php echo $this->getimgsizey(); ?>px;">
		<img src="<?php echo WPSR_PATH; ?>740x500_ncw/<?php echo $this->obj->path.$this->obj->file; ?>" alt="<?php echo $this->obj->file; ?>" style="width: <?php echo $this->getimgsizex(); ?>px; height: <?php echo $this->getimgsizey(); ?>px;" />
		<div id="image-nav-overlay" style="width: <?php echo $this->getimgsizex(); ?>px; height: <?php echo $this->getimgsizey(); ?>px;">
			<?php	if ( $prev >= 0 ) { ?>
				<a href="<?php echo get_option('home'); ?>/<?php echo WPSR_BASE_URI; ?>/<?php echo $this->obj->uri; ?>/show/<?php echo $this->pictures[$prev]->id; ?>/#WPshowroom" id="image-nav-prevoverlay" style="display: block;"></a>
			<?php
				}
				else { ?>
				<a href="#" id="image-nav-prevoverlay" style="display: none;"></a>
			<?php
				}
			?>
			<?php	if ($next >= 0) { ?>
				<a href="<?php echo get_option('home'); ?>/<?php echo WPSR_BASE_URI; ?>/<?php echo $this->obj->uri; ?>/show/<?php echo $this->pictures[$next]->id; ?>/#WPshowroom" id="image-nav-nextoverlay" style="display: block;"></a>
			<?php
				}
				else { ?>
				<a href="#" id="image-nav-nextoverlay" style="display: none;"></a>
			<?php
				}
			?>
		</div>
	</div>
	<?php if ($this->obj->caption != ''): ?>
	<div class="wpsr_caption">
		<em><?php echo $this->obj->caption; ?></em>
	</div>
<?php endif; ?>	
</div>